﻿using CRM.Models;
using System;
using System.ComponentModel;

namespace CRM.ViewModels.Customer
{
    public class CustomerListVM
    {
        public int? Type { get; set; }
#nullable enable
        public string? Name { get; set; }
        public string? Mobile { get; set; }

        public DateTime? UpdatedAtStart { get; set; }
        public DateTime? UpdatedAtEnd { get; set; }
#nullable restore 
        public int Status { get; set; }
        public int Page { get; set; } = 1;
        //public string ?addTime { get; set; }
        public int Limit { get; set; } = 20;
        [Description("1我的客户 2意向客户 3公海客户")]
        public ActionType Action { get; set; }

        public enum ActionType {
            [Description("我的客户")]
            My = 1,
            [Description("意向客户")]
            Intention,
            [Description("公海客户")]
            Water,

        }
        public int BlockId { get; set; }
        public CustomerCompany.FromType Form { get; set; }
    }
}
